package com.noble.meether.ui.point.bean;

import com.noble.library.base.bean.BaseData;

import org.json.JSONObject;

/**
 * 评分与奖励
 */
public class Point extends BaseData {
    private int id;
    private double maxStar;
    private double minStar;
    private double amount;       // 奖励  元/分钟

    @Override
    public void parseJson(String jsonStr) {
        JSONObject jsonObject = getJsonObject(jsonStr);

        this.id = jsonObject.optInt("Id");
        this.maxStar = jsonObject.optDouble("MaxStar");
        this.minStar = jsonObject.optDouble("MinStar");
        this.amount = jsonObject.optDouble("Amount");
    }

    public int getId() {
        return id;
    }

    public double getMaxStar() {
        return maxStar;
    }

    public double getMinStar() {
        return minStar;
    }

    public double getAmount() {
        return amount;
    }
}
